package com.shop.shopserver;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling
@SpringBootApplication
@ComponentScan(basePackages = {"com.shop.shopcommon","com.shop.shoppojo", "com.shop.shopserver"}) // 扫描shop-common和shop-pojo的包
@MapperScan("com.shop.shopserver.mapper") // 指定 Mapper 接口所在的包路径
public class ShopServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShopServerApplication.class, args);
    }

}
